import { defineStore } from 'pinia'

export const headerStore = defineStore('header', {
  state: () => ({
    isopenMenu: false,
    isDark: false
  }),
  actions: {
    setOpenMenu(isOpen: boolean) {
      this.isopenMenu = isOpen
    },
    setDark(isDark: boolean) {
      this.isDark = isDark
    }
  }
})
